//
//  UIView+tapAction.m
//  waiguofang
//
//  Created by waiguofang on 15-2-5.
//  Copyright (c) 2015年 TP. All rights reserved.
//

#import "UIView+tapAction.h"

@implementation UIView (tapAction)

-(void)addTapGestureWithTarget:(id)target action:(SEL)action
{
    self.userInteractionEnabled = YES;
    UITapGestureRecognizer *tap = [[UITapGestureRecognizer alloc] initWithTarget:target action:action];
    [self addGestureRecognizer:tap];
}
@end
